package task2;

/**
 * 设置一个选手类
 */
public class Player {
    // 选手只能是黑方或者白方
    private PlayerType playerType;

    public Player(PlayerType playerType) {
        this.playerType = playerType;
    }

    public PlayerType getPlayerType() {
        return playerType;
    }

    public void setPlayerType(PlayerType playerType) {
        this.playerType = playerType;
    }
}
